package com.example.newapplication;

import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectOutputStream;

import android.os.Environment;

public class fileWriter {
	
	public fileWriter(String textToWrite){
		appendFile(textToWrite);
	}
	private void appendFile(String text){
		FileWriter f;
		try {
		 f = new FileWriter(Environment.getExternalStorageDirectory()+"/Text/H.txt",true);
		     f.write(text);
		 f.flush();
		 f.close();
		}
		catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
		}

		
	}
	
}
